import requestV2 from "@/utils/requestV2";
import { getAdminId } from "@/utils/auth";


export function assignRoleRobotTask(roleId, taskIds) {
  return requestV2({
    url: "admin/permission/roleRobotTask",
    method: "put",
    data: {
      roleId: roleId,
      taskIds: taskIds
    }
  });
}

export function getRobotTask() {
  return requestV2({
    url: `admin/permission/roleRobotTask?adId=${getAdminId()}`,
    method: "GET"
  });
}